package com.example.bus;


public class AndroidJniControl {
    static {
        System.loadLibrary("android_jni");

    } // 加载动态库

    public static native int testAdd(int num);

    public static native void setLedState(int gpioPin, int state);

    public static native void setPwmStart(int channel, int period_ns,int duty_cycle_ns);

    public static native void setPwmEnd(int channel);

    public static native int openSerial();

    public static native void closeSerial(int fd);

    public static native void sendSerialData(int fd,String data);

    public static native String receiveSerialData(int fd);


}